package com.ziyueyuwen.xiniao.bean.ao;

import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author wancheng  on 2019/1/22.
 */
public class LessonSaveAO {

    private Integer lessonId;

    @NotNull(message = "classId不能为空")
    private Integer classId;

    @NotEmpty(message = "上课日期不能为空")
    private List<String> days;

    @NotNull(message = "上课时间不能为空")
    private String startTime;

    @Range(min=0,max=24,message="durationOfHour的范围为{min}到{max}范围之内")
    private Integer durationOfHour = 0;

    @Range(min=0,max=60,message="durationOfMinute的范围为{min}到{max}范围之内")
    private Integer durationOfMinute = 0;

    private String teacherAccount;

    @Max(value = 12,message = "seatNum最大值为{value}")
    private Integer seatNum;

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public List<String> getDays() {
        return days;
    }

    public void setDays(List<String> days) {
        this.days = days;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public Integer getDurationOfHour() {
        return durationOfHour;
    }

    public void setDurationOfHour(Integer durationOfHour) {
        this.durationOfHour = durationOfHour;
    }

    public Integer getDurationOfMinute() {
        return durationOfMinute;
    }

    public void setDurationOfMinute(Integer durationOfMinute) {
        this.durationOfMinute = durationOfMinute;
    }

    public Integer getSeatNum() {
        return seatNum;
    }

    public void setSeatNum(Integer seatNum) {
        this.seatNum = seatNum;
    }

    public String getTeacherAccount() {
        return teacherAccount;
    }

    public void setTeacherAccount(String teacherAccount) {
        this.teacherAccount = teacherAccount;
    }

    public Integer getLessonId() {
        return lessonId;
    }

    public void setLessonId(Integer lessonId) {
        this.lessonId = lessonId;
    }
}
